package com.hyfd.service.mp;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.apache.shiro.session.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hyfd.common.BaseJson;
import com.hyfd.dao.mp.ProviderDao;
import com.hyfd.dao.mp.ProviderBillDispatcherDao;
import com.hyfd.service.BaseService;

@Service
@Transactional
public class ProviderBillDispatcherSer extends BaseService{
	
	public Logger log = Logger.getLogger(this.getClass());
	
	@Autowired
	ProviderDao providerDao;
	
	@Autowired
	ProviderBillDispatcherDao providerBillDispatcherDao;
	
	/**
	 * @功能描述：	根据 运营商物理通道和运营商获取可充值范围
	 *
	 * @作者：zhangpj		@创建时间：2017年5月15日
	 * @param req
	 * @return
	 */
	public String getProviderBillDispatcherToProvinceCode(HttpServletRequest req){
		Map<String, Object> reqMap=getMaps(req);
		List<Map<String, Object>> provinceCodeList = providerBillDispatcherDao.selectAll(reqMap);
		return JSONObject.toJSONString(provinceCodeList);
	}

}
